from redis import StrictRedis
redis = StrictRedis(host='localhost', port=6379, db=0)
#redis.set('age', 20)
#redis.rpush('list', 1, 2, 3)
#redis.sadd('tags', 'Book', 'Teas', 'Coffee')
#redis.sadd('tags', 'Book', 'Tea', 'Coffee')
redis.zadd('grade', {'Bob':100,"Mike" :98})
redis.hset('price', 'cake', 5)
print(redis.get('age'))